package com.qo.questiononline.mapper;

import com.qo.questiononline.model.QlPaperAnswer;
import com.qo.questiononline.model.QlPaperDetail;
import com.qo.questiononline.model.QlTestpaper;
import com.qo.questiononline.model.TablePaperDetail;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface QlTestpaperMapper {

    List<QlTestpaper> getPaper(QlTestpaper qlTestpaper);

    int addPaper(QlTestpaper qlTestpaper);

    void addPaperDetail(TablePaperDetail tablePaperDetail);

    List<QlPaperDetail> getPaperDetail(QlPaperDetail qlPaperDetail);

    List<QlPaperAnswer> getPaperByPeople(QlPaperAnswer qlPaperAnswer);

    void upDateAnswer(QlPaperDetail qlPaperDetail);
}
